<div class="mainBody-box-bg1">
<div>
	<form method="get" id="formSearch" action="{$manageDomain}shopManage/show">
		<div class="left">
			<!-- 服务社区所在地区：<select style="width:80px;" name="sel_province" id="sel_province">
	             </select>
         	<select style="width:80px;" name="sel_city" id="sel_city">
              	<option value="">市</option>
          	</select>
            <select style="width:80px;" name="sel_area" id="sel_area">
                <option value="">区/县</option>
            </select>  -->
        	商家名称：<input style="width:150px;" type="text" id="txt_shop_name" value="{$shop_name}" name="txt_shop_name" />
        	<select style="width:100px;" name="sel_shop_status" id="sel_shop_status">
                <option value="">全部</option>
                <option {if $show_status eq 1}selected="selected"{/if} value="1">正常</option>
                <option {if $show_status eq 2}selected="selected"{/if} value="2">冻结</option>
            </select>
        </div>
		<div class="left" style="padding-top:3px;">
			<a id="searchButton" onclick="document.getElementById('formSearch').submit();" class="buttonStyle"><span></span>搜 索</a>
		</div>
	</form>
	</div>
	<span class="action-span"><i class="action-span-add"></i><a href="{$manageDomain}shopManage/add">添加 新商家</a></span>
</div>

<div class="list-div" id="listDiv">
<table cellspacing='1' cellpadding='1' id='list-table' bgcolor="#cccccc" width="100%" class="table1">
  <tr>
  	<th height="40" align="left">
  		<input type="checkbox" onclick="checkBoxSelectAll(this,'checkboxes','listDiv')" />
  		商家简称</th>        
    <th>用户名</th>    
    <th>联系人</th>
    <th>联系电话</th>
    <th width="60px">状态</th>
    <th width="100px">重置密码</th>
    <th width="110px">操作</th>
  </tr>
  {foreach from=$list item=list}
  <tr>
  	<td align="left" height="40"><input type="checkbox" name="checkboxes[]" class='idsClass' value="{$list.shop_id}" />{$list.shop_simple_name}</td>
    <td align="center">{$list.user_name}</td>
    <td align="center">{$list.contact}</td>
    <td align="center">{$list.phone}</td>
    <td align="center">{if $list.shop_status eq 1}正常{else}冻结{/if}</td>
    <td align="center">
    	<a href="javascript:resetPwd({$list.shop_id},'User')">重置登录密码</a><br />
    	<a href="javascript:resetPwd({$list.shop_id},'Pay')"">重置账户密码</a>
     </td>
    <td align="center">
    	<a href="{$manageDomain}shopManage/changeStatus/?{if $pageUrl neq ''}{$pageUrl}&{/if}id={$list.shop_id}&type={if $list.shop_status eq 1}2{else}1{/if}">{if $list.shop_status eq 1}冻结{else}解除冻结{/if}</a>
    	<a href="{$manageDomain}shopManage/edit/?id={$list.shop_id}" title="编辑">编辑</a>
        <a href="{$manageDomain}shopManage/del/?{if $pageUrl neq ''}{$pageUrl}&{/if}id={$list.shop_id}" onclick="return confirm('您确定要删除此商户吗?')" title="删除">删除</a>
     </td>
  </tr>
  {/foreach}
  <tr>
    <th height="40"><div class="left"><a class="buttonStyle" onclick="batchDel('{$manageDomain}shopManage/batchDel/','idsClass')" id="btnSubmit"><span></span>批量删除</a></div></th>
    <th align="right" colspan="6">{$pageStr}</th>
  </tr>
</table>
</div>
